package com.yf.dxapp.module.app.controller.admin.token.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 登录token Response VO")
@Data
@ExcelIgnoreUnannotated
public class TokenRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19059")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1124")
    @ExcelProperty("用户id")
    private Long userId;

    @Schema(description = "token", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("token")
    private String token;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("过期时间")
    private LocalDateTime expireTime;

    @Schema(description = "ENUM-类型:WEB,MINI,APP", example = "1")
    @ExcelProperty("ENUM-类型:WEB,MINI,APP")
    private Integer type;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}